

/*                                                                                                                                             
 * Valentine Gladstein                                                                                                                          
 * SOLAR ID 108731583                                                                                                                           
 * Homework #3                                                                                                                                  
 * CSE214                                                                                                                                       
 * Recitation 03-Phil Ammirato                                                                                                                  
 * Grading TA: Yanjie Li                                                                                                                       */
import java.io.*;
import java.util.*;

public class MyNode {
    private MyNode next;
    private String data;

    public MyNode() {
    }

    public MyNode getNext() {
	return next;
    }

    public String getData() {
	return data;
    }

    public void setNext(MyNode node) {
	next = node;
    }

    public void setData(String input) {
	data = input;
    }

    public boolean hasNext() {                                                                                                             
	return (next != null);                                                                                                             
    }             
}